import _fetch from "api_xukaiyu/fetch";
/**
 * 失效红包
 * @param { Object } data 请求参数
 * {
 *   ids undefined
 * }
 */
export function batchToUse(data) {
  return _fetch({
    url: "backend/coupon/user/batchToUse",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询用户红包列表
 * @param { Object } data 请求参数
 * {
 *   orderSql undefined
 *   uid undefined
 *   getEndTime undefined
 *   cardName undefined
 *   statusList undefined
 *   activityName undefined
 *   mobile undefined
 *   getStartTime undefined
 *   tag undefined
 *   total undefined
 *   queryStartTime undefined
 *   pageSize undefined
 *   page undefined
 *   queryEndTime undefined
 * }
 */
export function queryList(data) {
  return _fetch({
    url: "backend/coupon/user/queryList",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询模板下红包数量
 * @param { Object } data 请求参数
 * {
 *   tplId undefined
 * }
 */
export function countByTplId(data) {
  return _fetch({
    url: "backend/coupon/user/countByTplId",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 保存或更新记录
 * @param { Object } data 请求参数
 * {
 *   t undefined
 * }
 */
export function update(data) {
  return _fetch({
    url: "backend/coupon/user/update",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 删除记录
 * @param { Object } data 请求参数
 * {
 *   id undefined
 * }
 */
export function _delete(data) {
  return _fetch({
    url: "backend/coupon/user/delete",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询一条记录
 * @param { Object } data 请求参数
 * {
 *   id undefined
 * }
 */
export function get_one(data) {
  return _fetch({
    url: "backend/coupon/user/get_one",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询列表
 * @param { Object } data 请求参数
 * {
 *   t undefined
 *   total undefined
 *   queryStartTime undefined
 *   pageSize undefined
 *   page undefined
 *   queryEndTime undefined
 * }
 */
export function query_list(data) {
  return _fetch({
    url: "backend/coupon/user/query_list",
    method: "POST",
    data: data,
    headers: {}
  });
}